const proxy = require('http-proxy-middleware');
module.exports = function (app) {
    app.use(proxy('/mip', {
        target: 'https://elm.cangdu.org', 
         changeOrigin: true,
        pathRewrite: {
            "^/mip": ""
        }
    }));
    // app.use(proxy('/auth', {
    //     target: 'https://activity.m.duiba.com.cn',
    //     changeOrigin: true,
    //     pathRewrite: {
    //         "^/auth": ""
    //     }
    //     // https://activity.m.duiba.com.cn/button/getClassify?id=2010&appItemNextPage=false&autoRecommendNextPage=false&appItemPage=1&autoRecommendPage=1&arunum=1&iconIdStr=&type=classify
    // }));
};
